package cn.itcast.domain;

import lombok.Data;

import java.util.List;

/**
 * @author :HCH
 * @version : 1.0.0
 * @date :Created in 2019/6/24 19:47
 * @description :TODO
 * @modified :
 */
@Data
public class UserInfo {

    private String id;
    private String username;
    private String email;
    private String password;
    private String phoneNum;
    private int status;
    private String statusStr;
    private List<Role> roles;


    public String getStatusStr() {
        if (status == 0){
            statusStr = "未开启";
        }else if (status == 1){
            statusStr = "开启";
        }

        return statusStr;
    }

}
